import request from '@/utils/request'

//获取权限树
export const getPermissionTree = () => request.get('/permission/tree')

//添加权限
export const addPermission = (permission) => request.post('/permission', permission)

//更新权限
export const updatePermission = (id, permission) => request.put(`/permission/${id}`, permission)

//删除权限
export const deletePermission = (id) => request.delete(`/permission/${id}`)